ticket.cpp